package com.thb.pay.mchant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.thb.pay.db.entity.SuperEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 商户-代付通道表
 * </p>
 *
 * @author lucky
 * @since 2019-07-21
 */
@Data
@Accessors(chain = true)
@TableName("mch_agentpay_passage")
public class MchAgentpayPassage extends SuperEntity<MchAgentpayPassage> {

    private static final long serialVersionUID = 1L;

    /**
     * 商户ID
     */
    private Long mchId;

    /**
     * 代付通道ID
     */
    private Long agentpayPassageId;

    /**
     * 代付通道账户ID
     */
    private Long agentpayPassageAccountId;

    /**
     * 单笔代付转出最大金额,单位分
     */
    private Long maxEveryAmount;

    /**
     * 手续费类型,1-百分比收费,2-固定收费
     */
    private Integer mchFeeType;

    /**
     * 手续费费率,百分比
     */
    private BigDecimal mchFeeRate;

    /**
     * 手续费每笔金额,单位分
     */
    private Long mchFeeEvery;

    /**
     * 状态,0-关闭,1-开启
     */
    private Integer status;

    /**
     * 是否默认,0-否,1-是
     */
    private Integer isDefault;

}
